import request from '@/utils/request'

// 查询部门台账
export function save(data) {
  return request({
    url: '/BuMen/getBuAll',
    method: 'get',
    data: data
  })
}

//nh
export function addl(data) {
  console.log("发送到API的数据",JSON.stringify(data, null, 2));
  
  return request({
      url: '/BuMen/insertBuMen',
      method: 'post',
      data: data
  })
}
export function upda(data) {
  return request({
      url: '/BuMen/updateBuMen',
      method: 'put',
      data: data
  })
}
export function delet(dtoBumen) {
  return request({
      url: '/BuMen/updatedeleteBuMen',
      method: 'delete',
      data: dtoBumen  // 传递数据
  });
}


